package cn.tedu.fresheveryday.mapper;

import cn.tedu.fresheveryday.pojo.entity.UserLoginHistory;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

@Repository
public interface UserLoginHistoryMapper {
    /**
     * 添加用户登录历史
     * @param history
     * @return
     */
    @Insert(
            "insert into user_login_history (" +
                "id, user_id, login_ip, login_time" +
            ") values (" +
                "#{id}, #{userId}, #{loginIp}, #{loginTime}" +
            ")"
    )
    void insert(UserLoginHistory history);
}